<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Ad_layout extends CI_Controller
{
	public function  __construct()
	{
		parent::__construct();
		
		$this->load->model('utility_model', 'utility_model');
		$this->load->model('product_model', 'product_model');
		$this->load->model('content_model', 'content_model');
		$this->load->model('customers_model', 'customers_model');
		$this->load->model('menu_model', 'menu_model');
		date_default_timezone_set("Asia/Ho_Chi_Minh");
		
		$session_data = $this->session->userdata('logged_in');
		if(!$session_data){
			redirect('admin/dang-nhap', 'refresh');
		}

		$this->_data['ad_header'] = $this->load->view('admin/includes/ad_header_view', '', TRUE);
		$this->_data['ad_menu'] = $this->load->view('admin/includes/ad_menu_view', '', TRUE);
		$this->_data['ad_footer'] = $this->load->view('admin/includes/ad_footer_view', '', TRUE);
		
	
	}
	
	
}

